//
//  NSDate+Calculate.h
//  UtoPassenger
//
//  Created by peter on 15/7/23.
//  Copyright (c) 2015年 maseinfo. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef struct {
    __unsafe_unretained NSDate *beginDate;
    __unsafe_unretained NSDate *endDate;
} DateCircle;

@interface NSDate (Calculate)
@property (assign, nonatomic, readonly) DateCircle currentMonth;
@property (assign, nonatomic, readonly) DateCircle currentWeek;
@property (strong, nonatomic, readonly) NSCalendar *calendar;
@property (strong, nonatomic, readonly) NSDateComponents *components;
@property (assign, nonatomic, readonly)int week;
@property (strong, nonatomic, readonly) NSDate *lastNearestDate;
@property (strong, nonatomic, readonly) NSDate *futureNearestDate;
@end
